xen/arm: Rework lpae_mapping
authorJulien Grall <julien.grall@arm.com>
Mon, 16 Jul 2018 17:27:03 +0000 (18:27 +0100)
committerJulien Grall <julien.grall@arm.com>
Wed, 22 Aug 2018 15:33:37 +0000 (16:33 +0100)
commit7e6a733405b4f4221da51b6c4e5a735b8e64ede8
treea1dcdb1f8a49cefdab29f260b594ff3dd23135a8
parent7bb3a9ae34b95eb944217abc377242ccd66d5e7b
xen/arm: Rework lpae_mapping

Currently, lpae_mapping can only work on entry from any level other than
3. Make it work with any level by extending the prototype to pass the
level.

At the same time, rename the function to lpae_is_mapping so naming stay
consistent accross lpae_* helpers.

Signed-off-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/p2m.c
xen/include/asm-arm/lpae.h